" All system-wide defaults are set in $VIMRUNTIME/archlinux.vim (usually just
" /usr/share/vim/vimfiles/archlinux.vim) and sourced by the call to :runtime
" you can find below.  If you wish to change any of those settings, you should
" do it in this file (/etc/vimrc), since archlinux.vim will be overwritten
" everytime an upgrade of the vim packages is performed.  It is recommended to
" make changes after sourcing archlinux.vim since it alters the value of the
" 'compatible' option.

" This line should not be removed as it ensures that various options are
" properly set to work with the Vim-related packages.
runtime! archlinux.vim

" If you prefer the old-style vim functionalty, add 'runtime! vimrc_example.vim'
" Or better yet, read /usr/share/vim/vim80/vimrc_example.vim or the vim manual
" and configure vim to your own liking!

" do not load defaults if ~/.vimrc is missing
"let skip_defaults_vim=1
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"

"set nobackup
"set undofile

"set backupdir=~/.vim/.backup
"set directory=~/.vim/.swp
"set undodir=~/.vim/.undo

colorscheme gruvbox
set bg=dark

set autochdir
set noerrorbells
set visualbell
set history=1000
set autoread

"设置命令模式
set wildmenu
set wildmode=longest:list,full


"设置字符集编码
set encoding=utf-8
set langmenu=zh_CN.UTF-8
language message zh_CN.UTF-8
set fileencodings=ucs-bom,utf-8,cp936,gb18030,big5,euc-jp,euc-kr,latin1

"启用256色
set t_Co=256
"启用真彩色
"set termguicolors


"缩进规则
filetype indent on
set autoindent
set tabstop=4
set shiftwidth=4
set expandtab
set softtabstop=4

"设置行
set number
set relativenumber
"set cursorline
set textwidth=80
set wrap

"字符设置
set showmatch
"set spell spelllang=en_us
syntax on

"搜索设置
set hlsearch
set incsearch
set ignorecase
set smartcase

"括号自动匹配
inoremap ' ''<ESC>i
inoremap " ""<ESC>i
inoremap ( ()<ESC>i
inoremap < <><ESC>i
inoremap [ []<ESC>i
inoremap { {}<ESC>i
inoremap {<CR> {<CR>}<ESC>O

"===================================================vundle的配置======================================================

